package BaseTest

object MedthodDemo {
  def main(args: Array[String]): Unit = {
    println(addMutly(1, 2, 3))
    val s1 = Set(1, 1, 2, 3, 4, 5, 6, 7, 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5)

    /**
     * immutable.Set
     * scala 中导入的Set 内容和长度都不可以改变
     *
     */
    println(s1)
  }


  def addMutly(x: Int, y: Int*): Int = {
    x + y.sum
  }

}
